package com.hdaccp.foodsales.dao;

import com.hdaccp.foodsales.entity.members;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MembersDao {
    //查询总条数
    public long getTotalCount(@Param("membersname") String membersname);

    //查询所有会员信息（分页）
    public List<members> query(@Param("membersname") String membersname, @Param("offset") int offset, @Param("limit") int limit);

    public List<members>uery(@Param("membersname")String membersname,@Param("offset")int offset,@Param("limit")int limit);

    //删除会员信息
    public int del(int membersid);

    //修改会员信息
    public int update(members membersinfo);

    //根据id查询信息
    public members getId(long id);

    //增加会员信息
    public int add(members membersinfo);





}
